package cn.chenhuanming.shh.administer.entity.jpa.projection;

import cn.chenhuanming.shh.administer.entity.jpa.District;
import org.springframework.data.rest.core.config.Projection;

import java.util.Set;

/**
 * Created by chenhuanming on 2017-08-25.
 *
 * @author chenhuanming
 */
@Projection(name = "withChildren",types = {District.class})
public interface DistrictWithChildren {
    public String getName();

    public Integer getId();

    public String getCode();

    public Set<District> getChildren();
}
